using System;
using CommandSystem;

namespace RgCore.GameModes.Commands.GameModeCommands
{ 
    public class GameModeCommand : ParentCommand, IUsageProvider
    {
        public GameModeCommand() => LoadGeneratedCommands();

        public string[] Usage => new string[] { "list/set", "游戏模式ID" };

        public override string Command => "gamemode";

        public override string[] Aliases => Array.Empty<string>();

        public override string Description => "查询或设置游戏模式";

        public override void LoadGeneratedCommands()
        {
            this.RegisterCommand(new List());
            this.RegisterCommand(new Set());
        }

        protected override bool ExecuteParent(ArraySegment<string> arguments, ICommandSender sender,
            out string response)
        {
            response = "用法：gamemode set <游戏模式ID> 或 gamemode list";
            return false;
        }
    }
}